/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package studentinforedux;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement (name = "STUDENT")
@XmlType (propOrder = {"NAME", "KNUM", "DOB", "PASSWORD"})

/**
 *
 * @author k00112173
 */
public class Student {
    @XmlElement (name = "NAME")

    private String NAME;
    private String KNUM;
    private String DOB;
    private String PASSWORD;
    
    public Student(){
        
    }

    public Student(String NAME, String KNUM, String DOB, String PASSWORD) {
        this.NAME = NAME;
        this.KNUM = KNUM;
        this.DOB = DOB;
        this.PASSWORD = PASSWORD;
    }
     
    public String getDOB() {
        return DOB;
    }

    public void setDOB(String DOB) {
        this.DOB = DOB;
    }

    public String getKNUM() {
        return KNUM;
    }

    public void setKNUM(String KNUM) {
        this.KNUM = KNUM;
    }

    public String getNAMEs() {
        return NAME;
    }

    public void setNAME(String NAME) {
        this.NAME = NAME;
    }

    public String getPASSWORD() {
        return PASSWORD;
    }

    public void setPASSWORD(String PASSWORD) {
        this.PASSWORD = PASSWORD;
    }
   
    public void print(){
        System.out.println("");
        System.out.println("Name:          " + NAME);
        System.out.println("K Number:      " + KNUM);
        System.out.println("Date Of Birth: " + DOB);
        System.out.println("Password:      " + PASSWORD + "\n");
    }
          
}
